<template>
    <div class="item-content  bg-img">
        <div class="item-title bg-img">
            <span>实时粒子数据</span>
        </div>
        <div class="main">
            <el-row :gutter="0" justify="space-around" class="header-row">
                <el-col :span="3"><div class="grid-content ep-bg-purple-dark" />设备名称</el-col>
                <el-col :span="3"><div class="grid-content ep-bg-purple-dark" />设备状态</el-col>
                <el-col :span="3"><div class="grid-content ep-bg-purple-dark" />0.5μm</el-col>
                <el-col :span="3"><div class="grid-content ep-bg-purple-dark" />5.0μm</el-col>
                <el-col :span="3"><div class="grid-content ep-bg-purple-dark" />流量</el-col>
                <el-col :span="3"><div class="grid-content ep-bg-purple-dark" />区域</el-col>
                <el-col :span="3"><div class="grid-content ep-bg-purple-dark" />位置</el-col>
            </el-row>

            <vue3ScrollSeamless class="scroll-wrap" :classOptions="classOptions" :dataList="[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]">
                <el-row class="row-text" :gutter="0" justify="space-around" v-for="i in [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]">
                    <el-col :span="3"><div class="grid-content ep-bg-purple-dark" />粒子计数器+{{i}}</el-col>
                    <el-col :span="3"><div class="grid-content ep-bg-purple-dark" />运行</el-col>
                    <el-col :span="3"><div class="grid-content ep-bg-purple-dark" />25643</el-col>
                    <el-col :span="3"><div class="grid-content ep-bg-purple-dark" />158</el-col>
                    <el-col :span="3"><div class="grid-content ep-bg-purple-dark" />2.83</el-col>
                    <el-col :span="3"><div class="grid-content ep-bg-purple-dark" />实验室</el-col>
                    <el-col :span="3"><div class="grid-content ep-bg-purple-dark" />实验室_A3</el-col>
                </el-row>
            </vue3ScrollSeamless>
        </div>
    </div>
</template>
<script setup>
    import {reactive} from "vue";
    import {vue3ScrollSeamless} from "vue3-scroll-seamless";

    const classOptions = {
        step: 0.5
    };

</script>

<style lang="scss" scoped>
    .header-row{
        cursor: pointer;
        font-size: 1.1rem;
        font-weight: bold;
        text-align: center;
        color: #91c9ff;
        padding: 4px 0;
    }
    .row-text{
        text-align: center;
        cursor: pointer;
        font-size: 1rem;
        border-bottom: 1px solid rgb(47, 77, 117);
        padding-top: 4px;
    }
    .row-text:hover{
        background-clip: text;
        color: #007bff;
        background: linear-gradient(to right, #284558, #16426a);
        opacity: 0.8;
        font-weight: bold;
    }
    .main {
        height: calc(100% - 11%);
    }

    .item-content::before {
        border-left: 2px solid #4fd5e1;
        position: absolute;
        width: 8px;
        height: 8px;
        opacity: 1;
        content: "";
        border-top: 2px solid #4fd5e1;
        top: 0px;
        border-radius: 2px;
        left: 0px;
    }

    .item-content::after {
        position: absolute;
        width: 8px;
        height: 8px;
        opacity: 1;
        content: "";
        border-bottom: 2px solid #4fd5e1;
        bottom: 0px;
        border-radius: 2px;
        border-right: 2px solid #4fd5e1;
        right: 0px;
    }

    .item-content {
        height: 100%;
        width: calc(100% - 44% - 30px);
        position: relative;
        border-radius: 4px;
        background-color: rgb(40 57 111 / 47%);
        color: #fff;
        margin: 0 auto;
        .item-title {
            font-size: 18px;
            background-size: 100% 100%;
            height: 36px;
            line-height: 36px;
            padding-left: 1rem;
            display: flex;
            align-items: center;
            span {
                background: linear-gradient(to bottom, #fff, #055eff);
                color: transparent;
                background-clip: text;
                font-weight: bold;
            }
        }
    }

    .scroll-wrap {
        overflow: hidden;
    }

</style>

